export const getMyLike=()=>{
  return uni.$http.get('/user/getMyLove')
}

export const getUserDetail=()=>{
  return uni.$http.get('/user/getInfo')
}

export const setUserDetail=(username,file)=>{
  return uni.$http.put('/user/updateUserInfo',{
    username,
    file
  })
}

export const wxLogin=(code)=>{
  return uni.$http.post('/user/loginByCode',{
    code
  })
}